package AbstractRational;

//import RationalPackaging.Rational.*;

public class Div extends Operating{
	
	public Div(){
		
	}
	public Div(int a,int b){
		super(a,b);
	}

	public Operating yunsuan(Operating r){
		int a=r.getNumerator();
		int b=r.getDenominator();
		int newNumerator=numerator*b;
		int newDenominator=denominator*a;
		Div result=new Div(newNumerator,newDenominator);
		return result;
	}
}
